/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2023. All rights reserved.
 */

package model

/*
* UserId 用户ID
* CloudUserId 云上用户ID
* BalanceStatus 账户余额状态,true为正常，false为欠费
* Currency 币种,CNY
* Amount 账户可用总余额
* DebtAmount 账户欠费总余额
 */

type Balance struct {
	UserId        string  `orm:"column(user_id);size(64);index;pk"`
	CloudUserId   string  `orm:"column(cloud_user_id);size(64);"`
	BalanceStatus bool    `orm:"column(balance_status);type(boolean)"`
	Currency      string  `orm:"column(currency);size(10)"`
	Amount        float64 `orm:"column(amount);digits(17);decimals(2)"`
	DebtAmount    float64 `orm:"column(debt_amount);digits(17);decimals(2)"`
}
